#!/bin/csh
#...........................................................................
#BSUB -a poe                    # use LSF poe elim
#BSUB -x                        # exclusive use of node (not_shared)
#BSUB -n 1                      # total tasks needed
#BSUB -R "span[ptile=16]"       # max number of tasks (MPI) per node
#BSUB -J NDG
#BSUB -o %J.runout              # output filename
#BSUB -e %J.runout              # error filename
#BSUB -W 01:00
##BSUB -P P93300642
#BSUB -P WYOM0024
##BSUB -q regular             # queue
#BSUB -q small                  # regular 

set echo 

# CAM5 orography 
# 
# /glade/p/cesm/cseg/inputdata/atm/cam/topo/USGS-gtopo30_1.9x2.5_remap_c050602.nc oro_ecmwf_T170.nc
#  
# cdo sp2gp -sp2sp,170 -gp2sp -remapcon,t170grid oro_cam5.nc oro_cam5_t170.nc


foreach yy (2013) 
#foreach mm (01 02 03 04 05 06 07 08 09 10 11 12) 
foreach mm (01 02 03) 

 cdo mergetime ndg_2x2.5_${yy}${mm}????.nc ndg_2x2.5_${yy}${mm}.nc  & 

end 

end



